<?
$past_illness = set_value('past_illness',$student->hhc_past_illness);
$frequent_colds = set_value('frequent_colds',$student->hhc_frequent_colds);
$frequent_headaches = set_value('frequent_headaches',$student->hhc_frequent_headaches);
$frequent_stomachaches = set_value('frequent_stomachaches',$student->hhc_frequent_stomachaches);
$frequent_dizziness = set_value('frequent_dizziness',$student->hhc_dizziness);
$frequent_vommiting = set_value('frequent_vommiting',$student->hhc_vomitting);
$major_operations = set_value('major_operations',$student->hhc_major_operations_specify);
$major_injury = set_value('major_injury',$student->hhc_major_injury_specify);
$major_ailment = set_value('major_ailment',$student->hhc_diagnosed_specify);
$medication_child_taking = set_value('medication_child_taking',$student->hhc_medication);
$medication_allergy = set_value('medication_allergy',$student->hhc_alergic_med);
$child_eating_habbit = set_value('child_eating_habbit',$student->hhc_general_eating);
$dietary_restrictions = set_value('dietary_restrictions',$student->hhc_food_restrictions);
$school_help_eating_habbit = set_value('school_help_eating_habbit',$student->hhc_school_help_eating);
?>
<div>
<div class="alert-box secondary"><h6>HEALTH HISTORY OF CHILD</h6></div>
		<form action="<?=site_url('guardian/student_profiles/'.$hid);?>" method="POST" id="update_student_data">
		<div>
			<label class="radius secondary label">What PAST ILLNESSES has the child had?<br>(Please enumerate and specify age it occured)</label>
			<?=form_error('past_illness');?>
			<textarea name="past_illness"><?=$past_illness;?></textarea>
		</div>

	<p class="lead-title">How frequent does the child have the following?</p>
	<div>
		<label class="radius secondary label">COLDS</label>
		<?=form_error('frequent_colds');?>
		<input type="text" name="frequent_colds" value="<?=$frequent_colds;?>">
	</div>
	<div>
		<label class="radius secondary label">HEADACHES</label>
		<?=form_error('frequent_headaches');?>
		<input type="text" name="frequent_headaches" value="<?=$frequent_headaches;?>">
	</div>
	<div>
		<label class="radius secondary label">STOMACH ACHES</label>
		<?=form_error('frequent_stomachaches');?>
		<input type="text" name="frequent_stomachaches" value="<?=$frequent_stomachaches;?>">
	</div>
	<div>
		<label class="radius secondary label">DIZZINESS</label>
		<?=form_error('frequent_dizziness');?>
		<input type="text" name="frequent_dizziness" value="<?=$frequent_dizziness;?>">
	</div>
	<div>
		<label class="radius secondary label">VOMMITING</label>
		<?=form_error('frequent_vommiting');?>
		<input type="text" name="frequent_vommiting" value="<?=$frequent_vommiting;?>">
	</div>
	<hr style="border:1px solid #000;">
	<div>
		<label class="radius secondary label">Has your child had any major operations? if yes specify</label>
		<?=form_error('major_operations');?>
		<textarea name="major_operations"><?=$major_operations;?></textarea>
	</div>
	<div>
		<label class="radius secondary label">Has your child had any major injury in the past? <br>(eg. limbs,joints,head,spine) specify</label>
		<?=form_error('major_injury');?>
		<textarea name="major_injury"><?=$major_injury;?></textarea>
	</div>
	<div>
		<label class="radius secondary label">Has your child been diagnosed with any major ailment<br>(eg. heart,epilepsy,asthma) if Yes specify</label>
		<?=form_error('major_ailment');?>
		<textarea name="major_ailment"><?=$major_ailment;?></textarea>
	</div>
	<div>
		<label class="radius secondary label">What medication/remedy is your child taking?</label>
		<?=form_error('medication_child_taking');?>
		<input type="text" name="medication_child_taking" value="<?=$medication_child_taking;?>">
	</div>
	<div>
		<label class="radius secondary label">Is your child allergic to Penicillin? Aspirin? other mediaciton specify?</label>
		<?=form_error('medication_allergy');?>
		<input type="text" name="medication_allergy" value="<?=$medication_allergy;?>">
	</div>
	<div>
		<label class="radius secondary label">What is the general eating habbit of the child?</label>
		<?=form_error('child_eating_habbit');?>
		<input type="text" name="child_eating_habbit" value="<?=$child_eating_habbit;?>">
	</div>
	<div>
		<label class="radius secondary label">Are there any DIETARY RESTRICTIONS or FOOD ALLERGIES? if yes Specify</label>
		<?=form_error('dietary_restrictions');?>
		<input type="text" name="dietary_restrictions" value="<?=$dietary_restrictions;?>">
	</div>
	<div>
		<label class="radius secondary label">How do you want the school to help in his/her eating habit?</label>
		<?=form_error('school_help_eating_habbit');?>
		<input type="text" name="school_help_eating_habbit" value="<?=$school_help_eating_habbit;?>">
	</div>
	<?if($student->edit == 0 OR isset($imastudent)):?>
		<span><small style="color:#f00">Sorry but this profile is locked and cannot be edited, please contact the school registrar.</small></span></br>
	<?else:?>
	<hr>
	<div>
		<input type="hidden" name="profile_id" value="<?=$student->profile_id;?>">
		<input type="hidden" name="enrollment_id" value="<?=$student->enrollment_id;?>">
		<input type="hidden" name="update_health_history" value="true">
		<input type="submit" name="update_health_history" value="Update Health History"  class="btn btn-primary">
	</div>
	<?endif;?>
	</form>
</div>